#ifndef UTILS_H
#define UTILS_H

#ifdef WIN32
	#include <stdio.h>
	#define PRINT(...) printf(__VA_ARGS__);
#else
	#include "jni.h"
	#include "android/log.h"
	#define  PRINT(...)  __android_log_print(ANDROID_LOG_INFO,"MyLogInJNI",__VA_ARGS__)
#endif


#define DELETE_SAFELY(x) if((x)!=0) delete(x); (x)=0;
#define DELETE_SAFELY_ARRAY(x) if((x)!=0) delete[](x); (x)=0;

void DestroyAllSingletonObject();

#endif